package xyz.zhno.mall.common.core.enums;

import lombok.Getter;

/**
 * 业务错误码枚举类
 * @author zh_o
 */
@Getter
public enum ErrorCodeEnum {

    SERVER_ERROR("A5000", "系统异常"),

    PARAMETER_VALID_ERROR("B3000", "非法参数"),

    JSON_ERROR("J1000", "JSON转换异常");

    /**
     * 错误码
     */
    private final String code;

    /**
     * 错误信息
     */
    private final String message;

    ErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
